#pragma once
#include <OgreSceneManager.h>
#include <OgreEntity.h>
#include <Terrain/OgreTerrain.h>
#include <Terrain/OgreTerrainGroup.h>


class Level1
{
public:
	Level1(Ogre::SceneManager *Mgr);
	bool load(void);
	~Level1(void);
	Ogre::TerrainGroup* getTerrainGroup();
	bool getTerrainsImported();
	void setTerrainsImported(bool p);

private:
	Ogre::SceneManager* mSceneMgr;
	Ogre::TerrainGlobalOptions* mTerrainGlobals;
    Ogre::TerrainGroup* mTerrainGroup;
    bool mTerrainsImported;
 
    void defineTerrain(long x, long y);
    void initBlendMaps(Ogre::Terrain* terrain);
    void configureTerrainDefaults(Ogre::Light* light);
	void getTerrainImage(bool flipX, bool flipY, Ogre::Image& img);
};

